package com.sixkey.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * ClassName: User
 * Package: com.sixkey.model.entity
 * Description:
 *
 * @Author: @WeiXueShi
 * @Create: 2023/8/15 - 20:24
 * @Version: v1.0
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@AllArgsConstructor
public class User implements Serializable {
    private Integer age;

    @NotBlank(message = "用户名不能为空")
    private String username;
}
